package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the COST_CONTRACT_DETAILS database table.
 * 
 */
@Entity
@Table(name="COST_CONTRACT_DETAILS")
public class CostContractDetail extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CostContractDetailPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BOQ_CODE", length=30)
	private String boqCode;

	@Column(name="BOQ_REV", precision=22)
	private BigDecimal boqRev;

	@Column(name="BUILDING_PHASE", length=30)
	private String buildingPhase;

	@Column(name="CONS_BUDGET", precision=22)
	private BigDecimal consBudget;

	@Column(name="CONS_COST", precision=22)
	private BigDecimal consCost;

	@Column(name="CONS_COST_PCT", precision=22)
	private BigDecimal consCostPct;

	@Column(name="CONS_VAT", precision=22)
	private BigDecimal consVat;

	@Column(name="CONTRACT_PERIOD", precision=22)
	private BigDecimal contractPeriod;

	@Column(name="CONTRACT_PERIOD_UM", length=10)
	private String contractPeriodUm;

	@Column(name="COST_CONTRACT_DETAILS_ID", length=100)
	private String costContractDetailsId;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="END_DATE")
	private Date endDate;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="MODEL_CODE", length=30)
	private String modelCode;

	@Column(name="PROM_BUDGET", precision=22)
	private BigDecimal promBudget;

	@Column(name="PROM_COST", precision=22)
	private BigDecimal promCost;

	@Column(name="PROM_COST_PCT", precision=22)
	private BigDecimal promCostPct;

	@Column(name="PROM_VAT", precision=22)
	private BigDecimal promVat;

	@Column(name="REF_CONTRACTOR_REQ", length=30)
	private String refContractorReq;

	@Column(name="REF_DESC", length=300)
	private String refDesc;

	@Column(length=2000)
	private String remarks;

	@Column(precision=10)
	private BigDecimal revision;

	@Column(name="SERV_BUDGET", precision=22)
	private BigDecimal servBudget;

	@Column(name="SERV_COST", precision=22)
	private BigDecimal servCost;

	@Column(name="SERV_COST_PCT", precision=22)
	private BigDecimal servCostPct;

	@Column(name="SERV_VAT", precision=22)
	private BigDecimal servVat;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="START_DATE")
	private Date startDate;

	@Column(length=1)
	private String status;

	@Column(name="SUPPLIER_CODE", length=30)
	private String supplierCode;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING", length=1)
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TOTAL_BUDGET", precision=16, scale=2)
	private BigDecimal totalBudget;

	@Column(name="TOTAL_CONS", precision=22)
	private BigDecimal totalCons;

	@Column(name="TOTAL_COST", precision=16, scale=2)
	private BigDecimal totalCost;

	@Column(name="TOTAL_COST_BF_VAT", precision=16, scale=2)
	private BigDecimal totalCostBfVat;

	@Column(name="TOTAL_PROM", precision=22)
	private BigDecimal totalProm;

	@Column(name="TOTAL_SERV", precision=22)
	private BigDecimal totalServ;

	@Column(name="TOTAL_VAT", precision=16, scale=2)
	private BigDecimal totalVat;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="WB_CODE", length=30)
	private String wbCode;

	@Column(name="ZONE_CODE", length=30)
	private String zoneCode;

    public CostContractDetail() {
    }

	public CostContractDetailPK getId() {
		return this.id;
	}

	public void setId(CostContractDetailPK id) {
		this.id = id;
	}
	
	public String getBoqCode() {
		return this.boqCode;
	}

	public void setBoqCode(String boqCode) {
		this.boqCode = boqCode;
	}

	public BigDecimal getBoqRev() {
		return this.boqRev;
	}

	public void setBoqRev(BigDecimal boqRev) {
		this.boqRev = boqRev;
	}

	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public BigDecimal getConsBudget() {
		return this.consBudget;
	}

	public void setConsBudget(BigDecimal consBudget) {
		this.consBudget = consBudget;
	}

	public BigDecimal getConsCost() {
		return this.consCost;
	}

	public void setConsCost(BigDecimal consCost) {
		this.consCost = consCost;
	}

	public BigDecimal getConsCostPct() {
		return this.consCostPct;
	}

	public void setConsCostPct(BigDecimal consCostPct) {
		this.consCostPct = consCostPct;
	}

	public BigDecimal getConsVat() {
		return this.consVat;
	}

	public void setConsVat(BigDecimal consVat) {
		this.consVat = consVat;
	}

	public BigDecimal getContractPeriod() {
		return this.contractPeriod;
	}

	public void setContractPeriod(BigDecimal contractPeriod) {
		this.contractPeriod = contractPeriod;
	}

	public String getContractPeriodUm() {
		return this.contractPeriodUm;
	}

	public void setContractPeriodUm(String contractPeriodUm) {
		this.contractPeriodUm = contractPeriodUm;
	}

	public String getCostContractDetailsId() {
		return this.costContractDetailsId;
	}

	public void setCostContractDetailsId(String costContractDetailsId) {
		this.costContractDetailsId = costContractDetailsId;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getModelCode() {
		return this.modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public BigDecimal getPromBudget() {
		return this.promBudget;
	}

	public void setPromBudget(BigDecimal promBudget) {
		this.promBudget = promBudget;
	}

	public BigDecimal getPromCost() {
		return this.promCost;
	}

	public void setPromCost(BigDecimal promCost) {
		this.promCost = promCost;
	}

	public BigDecimal getPromCostPct() {
		return this.promCostPct;
	}

	public void setPromCostPct(BigDecimal promCostPct) {
		this.promCostPct = promCostPct;
	}

	public BigDecimal getPromVat() {
		return this.promVat;
	}

	public void setPromVat(BigDecimal promVat) {
		this.promVat = promVat;
	}

	public String getRefContractorReq() {
		return this.refContractorReq;
	}

	public void setRefContractorReq(String refContractorReq) {
		this.refContractorReq = refContractorReq;
	}

	public String getRefDesc() {
		return this.refDesc;
	}

	public void setRefDesc(String refDesc) {
		this.refDesc = refDesc;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BigDecimal getRevision() {
		return this.revision;
	}

	public void setRevision(BigDecimal revision) {
		this.revision = revision;
	}

	public BigDecimal getServBudget() {
		return this.servBudget;
	}

	public void setServBudget(BigDecimal servBudget) {
		this.servBudget = servBudget;
	}

	public BigDecimal getServCost() {
		return this.servCost;
	}

	public void setServCost(BigDecimal servCost) {
		this.servCost = servCost;
	}

	public BigDecimal getServCostPct() {
		return this.servCostPct;
	}

	public void setServCostPct(BigDecimal servCostPct) {
		this.servCostPct = servCostPct;
	}

	public BigDecimal getServVat() {
		return this.servVat;
	}

	public void setServVat(BigDecimal servVat) {
		this.servVat = servVat;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSupplierCode() {
		return this.supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public BigDecimal getTotalBudget() {
		return this.totalBudget;
	}

	public void setTotalBudget(BigDecimal totalBudget) {
		this.totalBudget = totalBudget;
	}

	public BigDecimal getTotalCons() {
		return this.totalCons;
	}

	public void setTotalCons(BigDecimal totalCons) {
		this.totalCons = totalCons;
	}

	public BigDecimal getTotalCost() {
		return this.totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getTotalCostBfVat() {
		return this.totalCostBfVat;
	}

	public void setTotalCostBfVat(BigDecimal totalCostBfVat) {
		this.totalCostBfVat = totalCostBfVat;
	}

	public BigDecimal getTotalProm() {
		return this.totalProm;
	}

	public void setTotalProm(BigDecimal totalProm) {
		this.totalProm = totalProm;
	}

	public BigDecimal getTotalServ() {
		return this.totalServ;
	}

	public void setTotalServ(BigDecimal totalServ) {
		this.totalServ = totalServ;
	}

	public BigDecimal getTotalVat() {
		return this.totalVat;
	}

	public void setTotalVat(BigDecimal totalVat) {
		this.totalVat = totalVat;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getWbCode() {
		return this.wbCode;
	}

	public void setWbCode(String wbCode) {
		this.wbCode = wbCode;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}